const { getDB } = require("../db");

module.exports = async (ctx) => {
    const sql = "SELECT * FROM photos";
    const [rows] = await getDB().execute(sql);

    console.log("11111");

    ctx.body = {
        status: 200,
        data: rows
    }
}